<!DOCTYPE html>
<html lang="zh-CN">
{%  load staticfiles %}
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="applicable-device" content="pc,mobile">
    <!-- Bootstrap core CSS -->
    <link href="https://img.jigao616.com/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://img.jigao616.com/css/style.css" rel="stylesheet">
    <link href="/static/css/common/common.css" rel="stylesheet">
    <title>数据</title>

    <!-- Stylesheet -->
    <link rel="stylesheet" href="http://www.rpcomputationalbiology.cn/static/style.css">
    <link rel="stylesheet" href="http://www.rpcomputationalbiology.cn/static/css/button.css">

    <!--JQUERY -->
    <!--模版的方式渲染本地的jquery。这里也可以去渲染服务 -->
    <script type="text/javascript" src="/static/script/map/echarts.min.js"></script>
    <script src="{% static 'script/common/jquery-3.1.1.min.js' %}"></script>
    <script src="https://img.jigao616.com/js/html5shiv.min.js"></script>
    <script src="/static/script/common/common.js"></script>
    <script src="/static/script/index/index.js"></script>
</head>
<body>
<header class="header-area">
    <!-- Top Header Area -->
    <div class="top-header-area d-flex justify-content-between align-items-center">
    </div>
    <!-- Navbar Area -->
    <div id="sticky-wrapper" class="sticky-wrapper is-sticky" style="height: 80px;">
        <div class="clever-main-menu" style="width: 100%; position: fixed; top: 0px; z-index: inherit;">
        <div class="classy-nav-container light left breakpoint-off">
            <!-- Menu -->
            <nav class="classy-navbar justify-content-between" id="cleverNav">

                <!-- Logo -->
                <a class="nav-brand" href="/index"><img src="{% static 'image/logo4.png' %}" alt="" style="width:550px;height:80px;margin-right:15px"></a>

                <!-- Navbar Toggler -->
                <div class="classy-navbar-toggler">
                    <span class="navbarToggler"><span></span><span></span><span></span></span>
                </div>

                <!-- Menu -->
                <div class="classy-menu">

                    <!-- Close Button -->
                    <div class="classycloseIcon">
                        <div class="cross-wrap"><span class="top"></span><span class="bottom"></span></div>
                    </div>

                    <!-- Nav Start -->
                    <div class="classynav">
                        <ul>
                            <li><a href="/index">主页</a></li>
                            <li ><a href="/visual">例子</a>
                            <li ><a href="/mysystem">预测</a>
                            <li><a href="/incidence">发病情况</a></li>
                            <li><a href="/inform/inform">研究现状</a></li>
                            <li><a href="/upfile">上传</a></li>
                        </ul>

<!--                        &lt;!&ndash; Search Button &ndash;&gt;-->
<!--                        <div class="register-login-area">-->
<!--                            <a href="/analysis" class="btn active">Run TPP</a>-->
<!--                        </div>-->

                        <!-- Register / Login -->
<!--                        <div class="register-login-area">-->
<!--                            <a href="/user/register" class="btn">注册</a>-->
<!--                            <a href="/user/login" class="btn">登录</a>-->
<!--                        </div>-->

                    </div>
                    <!-- Nav End -->
                </div>
            </nav>
        </div>
    </div></div>
</header>
<div class="container" style="height:500px">
      <div class="row">
             <div class="col-md-4">
                   <div class="col-box">
                  <div class="col-box-header">
<!--                      <span class="search-tit">-->
<!--                          <a href="#" >1958年-2018年肺结核按地区总计人数</a>-->
<!--                      </span>-->
                  </div>
                  <div class="col-box-list">
                      <ul>
							<li><a href="/visualization/line" >2009年-2018年淮安市肺结核、流感、HIV发病人数</a> </li>
							<li><a href="/visualization/tuberline">2008年-2018年淮安市肺结核每年发病人数</a></li>
							<li><a href="/visualization/fluline">2009年-2019年淮安市妇幼保健所、第二人民医院</a></li>
                      </ul>
                  </div>
                </div>

              </div>
             <div class="col-md-8">
               <!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->
               <div id="main" style="width: 600px;height:400px;margin:auto">

        <script type="text/javascript">
        var mdata,sdata;
        $.ajax({
                url: {% url 'get_line_mdata' %},
                type: "POST",
                async: false,
                data: {},
                success: function (data) {
                    data = JSON.parse(data);
                    mdata = data;
                }
            });
            $.ajax({
                url: {% url 'get_line_sdata' %},
                type: "POST",
                async: false,
                data: {},
                success: function (data) {
                    data = JSON.parse(data);
                    sdata = data;
                }
            });
        var myChart = echarts.init(document.getElementById('main'));
        var option = {

   title: {
        text: '  '
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data:['妇幼保健所','第二人民医院']
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['2009','2010','2011','2012','2013','2014','2015','2016','2017','2018','2019']
    },
    yAxis: {
        type: 'value'
    },
    series: [
        {
            name:'妇幼保健所',
            type:'line',
            stack: '总量1',
            data:mdata
<!--            data:[567,846,607,616,993,1054,1042,1041,1040,660,1040]-->
        },
        {
            name:'第二人民医院',
            type:'line',
            stack: '总量',
            data:sdata
<!--            data:[649,922,655,869,1205,1130,1042,1140,1044,1040,660]-->
        }
    ]
};
myChart.setOption(option);
   </script>
    </div>
             </div>
      </div>
</div>
<div class="footer">
            <p>
                <a href="javascript:void(0)">关于我们</a>
                <span class="line">|</span>
                <a href="javascript:void(0)">联系我们</a>
                <span class="line"></span>
            </p>
            <p>Copyright © 2018 All Rights Reserved. </p>
            <p> <a href="javascript:void(0)" target="_blank" rel="nofollow">XICP备xxxxx号-x</a>公网安备 xxxxxxxxxx号 归xxx所有</p>
         </div>
</body>
</html>